﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

<jsp:useBean id="PriceUtils" class="com.iman.common.util.PriceUtils" scope="page" />

<!DOCTYPE html>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="apple-itunes-app" content="app-id=591578609">
<meta name="viewport" content="width=device-width"/>
<meta name="description" content="德瑞姆网校" />
<meta name="keywords" content="德瑞姆网校、心理学、考试"/>
<link href="${imgpath}/images/favicon.ico" type="image/x-icon" rel="shortcut icon" /> 
<link rel="stylesheet" type="text/css" href="${csspath}/style/style.css">
<link rel="stylesheet" type="text/css" href="${csspath}/style/index.css">
<link rel="stylesheet" type="text/css" href="${csspath}/style/h_index.css">
<link rel="stylesheet" type="text/css" href="${csspath}/style/shop.css">
<!--[if IE 7]>
<link rel="stylesheet" href="/css/font-awesome/css/font-awesome-ie7.min.css">
<![endif]-->

<title>德瑞姆教育</title>

<script type="text/javascript"src="${jspath}js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" >
	$(document).ready(function(){
		//$('.shop_shopbodycount').change(function(){
		//	location.href = '/shop/shoppay?${shoppayUrl}';
		//});
	});
</script>

</head>
<body style="padding:0;margin:0 auto;clear:both; align:center;">
 
<!--topNav-->
  <%@include   file="../header_menu.jsp" %>
<!--end topNav-->

<div class="shop_nav">
<a href="/shop/cart">
	<div class="shop_nav0101" > 1.我的购物车 </div>
	<div class="shop_nav0202"> </div>
	</a>
	
	<a href="shopsure.htm">
	<div class="shop_nav0303"> </div>
	<div class="shop_nav0404"> 2.确认订单信息 </div>
	<div class="shop_nav0505"> </div>
	</a>
	

	<div class="shop_nav03"> </div>
	<div class="shop_nav04"> 3.购买成功 </div>
	<div class="shop_nav05"> </div>

</div>

<!--确认订单信息-->
<div class="shop_bodylist">
	<div class="shop_bodytitle"> 确认订单信息 </div>
	<div class="shop_shopdiv">
		<div class="shop_shoptitle">
			<div class="shop_shoptitle02">
				<div class="shop_shoptitle02"> 课程名称 </div>
			</div>
			<div class="shop_shoptitle03" style="float:right"> 价&nbsp;格 </div>
		</div>

		<c:forEach var="course" items="${courseInfos}" varStatus="cnstatus">
		<div class="shop_shopbody">
			<div class="shop_shopbody03">
				<div class="shop_shopbody03pic"> <img height="68px" with="82px" src="${drmFilePath}/${course.coursePimg}" style="border:1px solid #DDD;"/> </div>
				<div class="shop_shopbody03text">
					<p>${course.courseNm} </p>
					<p style="color:#666">讲师：${course.courseTeachernm} </p>
				</div>
			</div>
			<div class="shop_shopbody04" style="float:right"> ¥ ${PriceUtils.CoinToYuan(course.curPrice)}</div>
		</div>
		</c:forEach>

		<div class="shop_shoptitle" style="border-bottom:none;border-top:none;height:90px; ">
			<div class="shop_shoptitle02" style="width:570px;">
			 </div>
			<div class="shop_shoptitle03" style="width:180px;text-align:left;float:right;margin-right:30px;">
				<p>总计：<span style="float:right;"> ¥${calculate.sumAmount} </span> </p>
				<p>优惠：<span style="float:right;"> －¥${calculate.promotion} </span> </p>
				<p>学习币支付：<span style="float:right;">－¥${calculate.useCredit} </span> </p>
			</div>
		</div>
		
		<div class="shop_shoptitle" style="border-bottom:none;border-top:none;height:40px;background-color:#EFEFEF ">
			<div class="shop_shoptitle01" style="width:auto;">
			
			</div>
			<div class="shop_shoptitle02" style="width:530px;line-height:40px;">
			已选课程
			<span style="font-size:14px;color:#FF6600"> ${fn:length(courseInfos)}</span> 门 
			 </div>
			<div class="shop_shoptitle03" style="width:170px;text-align:left;line-height:40px;">
				<p>总合计：<span style="float:right;font-size:16px;color:#FF6600"> ¥${calculate.payAmount} </span> </p>
			</div>

			<a href="/shop/shoppay?${shoppayUrl}"> <div class="shop_shopbodycount"> 确认提交</div> </a>
		</div>
	</div>
</div>

<!--end确认订单信息-->

<!--footer -->
  <%@include   file="../footer.jsp" %>
<!--footer-->

</body>
</html>